/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package VO;

import FinancialEntity.Date;
import FinancialEntity.Quote;
import FinancialEntity.QuotePK;
import FinancialEntity.Stock;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 *
 * @author Sebastian
 */
public class QuotesVO {
    
    protected QuotePK quotePK;
    private double low;
    private double high;
    private double open;
    private double close;
    private double volume;
    private Date dateid;
    private Stock stock;

    public double getClose() {
        return close;
    }

    public void setClose(double close) {
        this.close = close;
    }

    public Date getDateid() {
        return dateid;
    }

    public void setDateid(Date dateid) {
        this.dateid = dateid;
    }

    public double getHigh() {
        return high;
    }

    public void setHigh(double high) {
        this.high = high;
    }

    public double getLow() {
        return low;
    }

    public void setLow(double low) {
        this.low = low;
    }

    public double getOpen() {
        return open;
    }

    public void setOpen(double open) {
        this.open = open;
    }

    public QuotePK getQuotePK() {
        return quotePK;
    }

    public void setQuotePK(QuotePK quotePK) {
        this.quotePK = quotePK;
    }

    public Stock getStock() {
        return stock;
    }

    public void setStock(Stock stock) {
        this.stock = stock;
    }

    public double getVolume() {
        return volume;
    }

    public void setVolume(double volume) {
        this.volume = volume;
    }
    
    public Quote toEntity(){
        Quote quote = new Quote();
        quote.setClose(close);
        quote.setDateid(dateid);
        quote.setHigh(high);
        quote.setLow(low);
        quote.setOpen(open);
        quote.setQuotePK(quotePK);
        quote.setStock(stock);
        quote.setVolume(volume);
        return quote;
    }
    
}
